<?php
require_once(ROOTDIR."/include/database/class.ReasonQueries.php");

$reasonQueries = new ReasonQueries();
$reasons = $reasonQueries->getReasonList();

echo "\"GlobalBan_Reason\"\n";
echo "{\n";

// Cycle through each user and create the keygroup
foreach($reasons as $reason) {

  echo "  \"".$reason->getId()."\"\n";
  echo "  {\n";
  echo "    \"reasonId\"      \"".$reason->getId()."\"\n";
  echo "    \"reasonText\"    \"".$reason->getReason()."\"\n";
  echo "  }\n";
}
?>
}